package org.wk.common.jpush.vo;


/**
 * 推送平台
 * @author df.wu
 */
public enum CustomPlatformEnum {
    ALL("all","全平台"),
    ANDROID("android","安卓"),
    IOS("ios","IOS"),
    ANDROID_AND_IOS("ANDROID_AND_IOS","安卓和IOS"),
    WINPHONE("winphone","winphone");

    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    private String code;
    private String name;

    CustomPlatformEnum(String code, String name){
        this.code = code;
        this.name = name;
    }

    public static boolean containsCode(String code){
        for (CustomPlatformEnum courseStatusEnum: CustomPlatformEnum.values()) {
            if (courseStatusEnum.getCode().equals(code)){
                return true;
            }
        }
        return false;
    }
}
